/*
 * Filename : test.java
 * Description : **COMPLETE**
 * History  : Date               Engineer       Description
 *            ---------          ------------   --------------------------------
 *            June 13, 2007      waitek         Initial creation.
 */
package com.lct.eq2.test;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import com.lct.eq2.tail.*;
import java.util.Random;

public class test extends Thread implements Runnable {

    BufferedWriter bw = null;
    boolean running = true;
    private String logLocation;

    /** Creates a new instance of test */
    public test(Tail parent) {
        parent.stopRunning();
    }

    /** Creates a new instance of test */
    public test(String logLocation) {
        this.logLocation = logLocation;
        second += 5;
        if (second >= 60) {
            minute++;
            second = 0;
        }
        if (minute >= 60) {
            hour++;
            minute = 0;
        }
    }

    public static void main(String args[]) throws IOException {
        boolean wuoshi = false;
        boolean convert = false;

        if (convert) {
            convertJavaToNothing();
            System.exit(0);
        }
//F:\\WarhammerOnline\\logs\\communication\\Skull Throne\\Dorf\\combat.log
        //C:\\Program Files\\WarhammerOnline\\logs\\communication\\Todbringer\\Shinzul\\combat.log
        try {
            if (!wuoshi) {
                //for (int x = 0; x < 75; x++) {
                test test = new test("C:\\Documents and Settings\\a59287\\My Documents\\Downloads\\eq2log_Shinzul.txt");
                test.run();
            //}
            } else {
//        Pattern p = Pattern.compile("^.+");
//        Matcher m = p.matcher("(1179534709)[Fri May 18 19:31:49 2007] YOUR Smite hits a bog sludge for 9 divine damage.");
//        System.out.println(m.find());

//        File file = new File("\\\\kris\\permafrost\\test.txt");
//        if (!file.exists()) {
//            file.createNewFile();
//        } else {
//            System.out.println("File rename = " + file.renameTo(new File("\\\\kris\\permafrost\\test.txt_" + System.currentTimeMillis())));
//            File newFile = new File("\\\\kris\\permafrost\\test.txt");
//            newFile.createNewFile();
//        } // \\\\offwsafw0031825\\SharedDocs\\eq2log_Stair.txt
                BufferedReader br = new BufferedReader(new FileReader(new File("C:\\tmp\\converted.txt"))); //c:\\tmp\\eq2\\eq2log_Shinzul.txt
                BufferedWriter bw = new BufferedWriter(new FileWriter("C:\\tmp\\eq2\\eq2log_Shinzul.txt", true));
                //bw.write("(1188242798)[Mon Aug 27 14:26:38 2007] You have entered The Emerald Halls.\r\n");
                String line = null;
                long previous = 0;
                while ((line = br.readLine()) != null) {
                    long timestamp = Long.parseLong(line.substring(1, 11));
                    if (!line.contains("\"")) {
                        System.out.println(" + \"\\r\\n" + line.trim() + "\"");
                    }
//                if (previous != timestamp) {
//                    try {
//                        previous = timestamp;
//                        currentThread().sleep(1000);
//                    } catch (InterruptedException ex) {
//                        ex.printStackTrace();
//                    }
//                }
                    //System.out.println(line);
//                BufferedWriter bw = new BufferedWriter(new FileWriter("C:\\tmp\\eq2\\eq2log_Shinzul.txt", true));
                    bw.write(line + "\n");
//                bw.close();
                }
                bw.close();
                br.close();
            }
        } catch (FileNotFoundException ex) {
            ex.printStackTrace();
        }
    }

    public static void convertJavaBack() {
        File file = new File("C:\\Documents and Settings\\waitek\\Desktop\\Code\\LCT\\tmp\\waite\\personal\\lct");
        File[] list = file.listFiles();

        for (int x = 0; x < list.length; x++) {
            if (list[x].isDirectory()) {
                File[] files = list[x].listFiles();
                String fpath = list[x].getPath();
                File newPath = new File(fpath.replaceAll("tmp", "new"));
                newPath.mkdirs();
                for (int y = 0; y < files.length; y++) {
                    try {
                        String path = files[y].getPath();
                        if (!path.contains("form")) {
                            File newFile = new File((path.substring(0, path.length() - 5) + ".java").replaceAll("tmp", "new"));
                            newFile.createNewFile();
                            copy(files[y], newFile);
                            System.out.println((path.substring(0, path.length() - 5) + ".java").replaceAll("tmp", "new"));
                        } else {
                            File newFile = new File((path.substring(0, path.length() - 5) + ".form").replaceAll("tmp", "new"));
                            newFile.createNewFile();
                            copy(files[y], newFile);
                            System.out.println((path.substring(0, path.length() - 5) + ".form").replaceAll("tmp", "new"));
                        }
                    } catch (Exception ex) {
                        ex.printStackTrace();
                    }
                }
            }
        }
    }

    public static void convertJavaToNothing() {
        File file = new File("C:\\Documents and Settings\\waitek\\Desktop\\Code\\LCT\\src\\waite\\personal\\lct");
        File[] list = file.listFiles();

        for (int x = 0; x < list.length; x++) {
            if (list[x].isDirectory()) {
                String fpath = list[x].getPath();
                File newPath = new File(fpath.replaceAll("src", "tmp"));
                newPath.mkdirs();
                File[] files = list[x].listFiles();
                for (int y = 0; y < files.length; y++) {
                    try {
                        String path = files[y].getPath();
                        if (!path.contains("form")) {
                            File newFile = new File((path.substring(0, path.length() - 5) + "_java").replaceAll("src", "tmp"));
                            newFile.createNewFile();
                            copy(files[y], newFile);
                            System.out.println((path.substring(0, path.length() - 5) + "_java").replaceAll("src", "tmp"));
                        } else {
                            File newFile = new File((path.substring(0, path.length() - 5) + "_form").replaceAll("src", "tmp"));
                            newFile.createNewFile();
                            copy(files[y], newFile);
                            System.out.println((path.substring(0, path.length() - 5) + "_form").replaceAll("src", "tmp"));
                        }
                    } catch (Exception ex) {
                        ex.printStackTrace();
                    }
                }
            }
        }

    }

    // Copies src file to dst file.
    // If the dst file does not exist, it is created
    static void copy(File src, File dst) throws IOException {
        InputStream in = new FileInputStream(src);
        OutputStream out = new FileOutputStream(dst);

        // Transfer bytes from in to out
        byte[] buf = new byte[1024];
        int len;
        while ((len = in.read(buf)) > 0) {
            out.write(buf, 0, len);
        }
        in.close();
        out.close();
    }
    int hour = 1;
    int minute = 1;
    int second = 1;

    @Override
    public void run() {
        //int x = 0;
        try {
            bw = new BufferedWriter(new FileWriter("C:\\everquest 2\\logs\\Permafrost\\eq2log_Shinzul.txt", true));
//            bw.write("(1179534668)[Fri May 18 19:31:08 2007] You have entered The Sinking Sands v1.0.\n");

//         bw.write("\r\n(1188242644)[Mon Aug 27 14:24:04 2007] YOU hit a dervish croc hunter for 390 slashing damage."
//            bw.write("\r\n(1276572358)[Mon Jun 14 23:25:58 2010] Sykl's Back into the Fray heals YOU for 2783 hit points."
//                + "\r\n(1276572357)[Mon Jun 14 23:25:57 2010] Sykl's Ring of Fire tries to burn a Scaleborn acolyte with Flames, but a Scaleborn acolyte resists."
//                + "\r\n(1276572357)[Mon Jun 14 23:25:57 2010] Sykl's Ring of Fire's Flames hits a Scaleborn acolyte for 323 heat damage."
//                + "\r\n(1276572357)[Mon Jun 14 23:25:57 2010] Sykl's Ring of Fire's Flames hits a Scaleborn acolyte for 285 heat damage."
//                + "\r\n(1276572357)[Mon Jun 14 23:25:57 2010] Sykl's Ring of Fire's Flames hits a Scaleborn soulclencher for 336 heat damage."
//                + "\r\n(1276572357)[Mon Jun 14 23:25:57 2010] Sykl's Ring of Fire's Flames hits a Scaleborn reaver for 334 heat damage."
//                + "\r\n(1276572357)[Mon Jun 14 23:25:57 2010] a Scaleborn reaver's Voracious Soul hits Sykl's Ring of Fire for 117 disease damage."
//                + "\r\n(1276572357)[Mon Jun 14 23:25:57 2010] a Scaleborn reaver's Voracious Soul heals a Scaleborn reaver for 93 hit points."
//                + "\r\n(1276572357)[Mon Jun 14 23:25:57 2010] Sykl's Ring of Fire's Flames hits a Scaleborn soulclencher for 303 heat damage."
//                + "\r\n(1276572357)[Mon Jun 14 23:25:57 2010] Sykl's Ring of Fire's Flames hits a furywing drakota for 322 heat damage."
//                + "\r\n(1276572357)[Mon Jun 14 23:25:57 2010] YOUR Runic Redemption absorbs 607 points of damage from being done to YOURSELF."
//                + "\r\n(1276572357)[Mon Jun 14 23:25:57 2010] a furywing drakota hits YOU but fails to inflict any damage."
//                + "\r\n(1276572357)[Mon Jun 14 23:25:57 2010] YOUR Adrenal Flow critically heals YOU for 338 hit points."
//                + "\r\n(1276572357)[Mon Jun 14 23:25:57 2010] YOUR Provoking Counterattack increases YOUR hate with a furywing drakota by 930 threat."
//                + "\r\n(1276572357)[Mon Jun 14 23:25:57 2010] YOUR Provoking Counterattack hits a furywing drakota for 308 slashing damage."
//                + "\r\n(1276572357)[Mon Jun 14 23:25:57 2010] YOUR Thornstorm hits a furywing drakota for 44 piercing damage."
//                + "\r\n(1276572357)[Mon Jun 14 23:25:57 2010] a Scaleborn acolyte tries to burn YOU with Solar Flare, but YOU resist."
//                + "\r\n(1276572357)[Mon Jun 14 23:25:57 2010] Turim's Shroud of Armor absorbs 52 points of damage from being done to YOU."
//                + "\r\n(1276572357)[Mon Jun 14 23:25:57 2010] YOUR Runic Redemption absorbs 21 points of damage from being done to YOURSELF."
//                + "\r\n(1276572357)[Mon Jun 14 23:25:57 2010] a Scaleborn soulclencher's Death Cloud hits YOU for 84 disease damage."
//                + "\r\n(1276572357)[Mon Jun 14 23:25:57 2010] Turim's Shroud of Armor absorbs 96 points of damage from being done to Sykl."
//                + "\r\n(1276572357)[Mon Jun 14 23:25:57 2010] a Scaleborn soulclencher's Death Cloud hits Sykl for 94 disease damage."
//                + "\r\n(1276572357)[Mon Jun 14 23:25:57 2010] A Scaleborn acolyte begins a fiery arcane spell."
//                + "\r\n(1276572357)[Mon Jun 14 23:25:57 2010] a Scaleborn soulclencher's Painbringer hits YOU for 78 disease damage."
//                + "\r\n(1276572357)[Mon Jun 14 23:25:57 2010] Sykl's ball lightning's Shock critically hits a giant eternal aegis for 498 magic damage."
//                + "\r\n(1276572357)[Mon Jun 14 23:25:57 2010] Sykl's ball lightning's Shock critically hits a Scaleborn acolyte for 534 magic damage."
//                + "\r\n(1276572357)[Mon Jun 14 23:25:57 2010] Sykl's ball lightning's Shock critically hits a Scaleborn acolyte for 612 magic damage."
//                + "\r\n(1276572357)[Mon Jun 14 23:25:57 2010] Sykl's ball lightning's Shock critically hits a Scaleborn acolyte for 554 magic damage."
//                + "\r\n(1276572357)[Mon Jun 14 23:25:57 2010] Sykl's ball lightning's Shock critically hits a Scaleborn soulclencher for 596 magic damage."
//                + "\r\n(1276572357)[Mon Jun 14 23:25:57 2010] Sykl's ball lightning's Shock critically hits a Scaleborn reaver for 591 magic damage."
//                + "\r\n(1276572357)[Mon Jun 14 23:25:57 2010] Sykl's ball lightning's Shock critically hits a Scaleborn soulclencher for 537 magic damage."
//                + "\r\n(1276572357)[Mon Jun 14 23:25:57 2010] Sykl's ball lightning's Shock critically hits a furywing drakota for 585 magic damage."
//                + "\r\n(1276572357)[Mon Jun 14 23:25:57 2010] a Scaleborn soulclencher hits YOU for 762 slashing damage."
//                + "\r\n(1276572357)[Mon Jun 14 23:25:57 2010] YOUR Thornstorm critically hits a Scaleborn soulclencher for 51 piercing damage."
//                + "\r\n(1276572357)[Mon Jun 14 23:25:57 2010] a Scaleborn acolyte's Solar Flare hits YOU for 869 heat damage."
//                + "\r\n(1276572357)[Mon Jun 14 23:25:57 2010] Shinzul blasts you with a fiery pulse!"
//                + "\r\n(1276572358)[Mon Jun 14 23:25:58 2010] A Scaleborn acolyte begins an arcane spell of fire."
//                + "\r\n(1276572358)[Mon Jun 14 23:25:58 2010] Gonartik tries to crush a Scaleborn acolyte, but misses."
//                + "\r\n(1276572358)[Mon Jun 14 23:25:58 2010] YOU try to slash a giant eternal aegis, but miss."
//                + "\r\n(1276572358)[Mon Jun 14 23:25:58 2010] YOU critically aoe attack a Scaleborn acolyte for 1245 slashing damage."
//                + "\r\n(1276572358)[Mon Jun 14 23:25:58 2010] YOU critically aoe attack a Scaleborn acolyte for 1245 slashing damage."
//                + "\r\n(1276572358)[Mon Jun 14 23:25:58 2010] YOU critically aoe attack a Scaleborn acolyte for 1418 slashing damage."
//                + "\r\n(1276572358)[Mon Jun 14 23:25:58 2010] YOU critically double attack a Scaleborn reaver for 1245 slashing damage."
//                + "\r\n(1276572358)[Mon Jun 14 23:25:58 2010] YOUR Mutilate hits a Scaleborn reaver for 155 slashing damage."
//                + "\r\n(1276572358)[Mon Jun 14 23:25:58 2010] a Scaleborn acolyte hits YOU for 487 slashing damage."
//                + "\r\n(1276572358)[Mon Jun 14 23:25:58 2010] You are shielded by a powerful rune."
//                + "\r\n(1276572358)[Mon Jun 14 23:25:58 2010] YOUR Thornstorm critically hits a Scaleborn acolyte for 49 piercing damage."
//                + "\r\n(1276572358)[Mon Jun 14 23:25:58 2010] YOUR Runic Redemption absorbs 670 points of damage from being done to YOURSELF."
//                + "\r\n(1276572358)[Mon Jun 14 23:25:58 2010] a Scaleborn soulclencher hits YOU but fails to inflict any damage."
//                + "\r\n(1276572358)[Mon Jun 14 23:25:58 2010] YOUR Thornstorm critically hits a Scaleborn soulclencher for 51 piercing damage."
//                + "\r\n(1276572358)[Mon Jun 14 23:25:58 2010] Sykl's Back into the Fray heals Sykl for 2783 hit points."
//                + "\r\n(1276572358)[Mon Jun 14 23:25:58 2010] Sykl's Infusive Wrath hits a furywing drakota for 250 magic damage."
//
//                + "\r\n(1276572360)[Mon Jun 14 23:25:57 2010] Sykl's ball lightning's Shock critically hits a furywing drakota for 585 magic damage."
//                + "\r\n(1276572360)[Mon Jun 14 23:25:58 2010] A Scaleborn acolyte begins an arcane spell of fire."
//                + "\r\n(1276572360)[Mon Jun 14 23:25:58 2010] Gonartik tries to crush a Scaleborn acolyte, but misses."
//                + "\r\n(1276572360)[Mon Jun 14 23:25:58 2010] YOU try to slash a giant eternal aegis, but miss."
//                + "\r\n(1276572360)[Mon Jun 14 23:25:58 2010] YOU critically aoe attack a Scaleborn acolyte for 1245 slashing damage."
//                + "\r\n(1276572360)[Mon Jun 14 23:25:58 2010] YOU critically aoe attack a Scaleborn acolyte for 1245 slashing damage."
//                + "\r\n(1276572360)[Mon Jun 14 23:25:58 2010] YOU critically aoe attack a Scaleborn acolyte for 1418 slashing damage."
//                + "\r\n(1276572360)[Mon Jun 14 23:25:58 2010] YOU critically double attack a Scaleborn reaver for 1245 slashing damage."
//                + "\r\n(1276572360)[Mon Jun 14 23:25:58 2010] YOUR Mutilate hits a Scaleborn reaver for 155 slashing damage."
//                + "\r\n(1276572360)[Mon Jun 14 23:25:58 2010] a Scaleborn acolyte hits YOU for 487 slashing damage."
//                + "\r\n(1276572360)[Mon Jun 14 23:25:58 2010] You are shielded by a powerful rune."
//                + "\r\n(1276572360)[Mon Jun 14 23:25:58 2010] YOUR Thornstorm critically hits a Scaleborn acolyte for 49 piercing damage."
//                + "\r\n(1276572360)[Mon Jun 14 23:25:58 2010] YOUR Runic Redemption absorbs 670 points of damage from being done to YOURSELF."
//                + "\r\n(1276572360)[Mon Jun 14 23:25:58 2010] a Scaleborn soulclencher hits YOU but fails to inflict any damage."
//                + "\r\n(1276572360)[Mon Jun 14 23:25:58 2010] YOUR Thornstorm critically hits a Scaleborn soulclencher for 51 piercing damage."
//                + "\r\n(1276572360)[Mon Jun 14 23:25:58 2010] Sykl's Back into the Fray heals YOU for 2783 hit points."
//                + "\r\n(1276572360)[Mon Jun 14 23:25:58 2010] Sykl's Infusive Wrath hits a furywing drakota for 250 magic damage."

//                bw.write("\r\n(1188242644)[Mon Jun 14 23:25:58 2010] YOUR Runic Redemption absorbs 455 points of damage from being done to YOURSELF."
//         + "\r\n(1188242644)[Mon Aug 27 14:24:06 2007] a dervish croc hunter hits YOU for 390 slashing damage."
//         + "\r\n(1188242644)[Mon Aug 27 14:24:06 2007] Vampire Lord Mayong Mistmoore hits YOU for 6451 crushing damage."
//         + "\r\n(1188242645)[Mon Aug 27 14:24:06 2007] Vampire Lord Mayong Mistmoore zap YOU draining 1 101 of power."
//         + "\r\n(1188242646)[Mon Aug 27 14:24:04 2007] Jimbobman's Supplicant's Prayer heals Jimbobman for 758 hit points."
//         + "\r\n(1188242645)[Mon Aug 27 14:24:06 2007] Vampire Lord Mayong Mistmoore confound Atlanis draining 1 101 of power."
//         + "\r\n(1188242647)[Mon Aug 27 14:24:04 2007] Hakujin's Crazy Mad Hit hits a dervish croc hunter for 758 piercing damage."
//         + "\r\n(1188242647)[Mon Aug 27 14:24:04 2007] Hakujin hits a dervish croc hunter for 758 crushing damage."
//         + "\r\n(1188242647)[Mon Aug 27 14:24:04 2007] Atlanis' Supplicant's Prayer heals Hakujin for 758 hit points."
//         + "\r\n(1188242646)[Mon Aug 27 14:24:07 2007] YOUR Furious Assault hits a dervish croc hunter for 390 slashing damage."
//         + "\r\n(1188242646)[Mon Aug 27 14:24:07 2007] Aditu's Supplicant's Prayer heals YOU for 150 hit points."
//         + "\r\n(1188242647)[Mon Aug 27 14:24:04 2007] YOUR Rampaging Blow hits a dervish croc hunter for 390 slashing damage."
//         + "\r\n(1188242647)[Mon Aug 27 14:24:04 2007] a dervish croc hunter hits YOU for 390 slashing damage."
//         + "\r\n(1188242647)[Mon Aug 27 14:24:04 2007] Vampire Lord Mayong Mistmoore hits YOU for 6451 crushing damage."
//         + "\r\n(1188242648)[Mon Aug 27 14:24:04 2007] YOUR Rampaging Blow critically hits a dervish croc hunter for 418 slashing damage."
//         + "\r\n(1188242648)[Mon Aug 27 14:24:06 2007] YOUR Acceleration Strike hits a dervish croc hunter for 416 slashing damage."
//         + "\r\n(1188242648)[Mon Aug 27 14:24:06 2007] YOUR Rampaging Blow critically hits a dervish croc hunter for 555 slashing damage."
//         + "\r\n(1188242648)[Mon Aug 27 14:24:06 2007] a dervish croc hunter tries to pierce YOU, but YOU parry."
//         + "\r\n(1188242648)[Mon Aug 27 14:24:07 2007] YOU critically hit a dervish croc hunter for 1038 slashing damage."
//         + "\r\n(1188242648)[Mon Aug 27 14:24:07 2007] YOUR Rampaging Blow hits a dervish croc hunter for 366 slashing damage."
//         + "\r\n(1188242648)[Mon Aug 27 14:24:07 2007] YOU critically hit a dervish croc hunter for 1038 slashing damage."
//         + "\r\n(1188242649)[Mon Aug 27 14:24:08 2007] YOUR Executioner's Wrath hits a dervish croc hunter for 459 slashing damage."
//         + "\r\n(1188242649)[Mon Aug 27 14:24:08 2007] YOUR Rampaging Blow hits a dervish croc hunter for 289 slashing damage."
//         + "\r\n(1188242647)[Mon Aug 27 14:24:04 2007] Hakujin hits a dervish croc hunter for 1500 piercing damage."
//         + "\r\n(1188242649)[Mon Aug 27 14:24:04 2007] Atlanis' Supplicant's Prayer heals YOU for 758 hit points."
//         + "\r\n(1188242650)[Mon Aug 27 14:24:04 2007] Farrelle's Carrion Bulwark absorbs 1000 points of damage from being done to YOU."
//         + "\r\n(1188242650)[Mon Aug 27 14:24:04 2007] Farrelle's Carrion Bulwark absorbs 1000 points of damage from being done to Hakujin."
//         + "\r\n(1188242650)[Mon Aug 27 14:24:08 2007] You have killed a dervish croc hunter.");
         bw.write("\r\n(1188243650)[Mon Aug 27 14:24:08 2007] You stop fighting."
         + "\r\n(1188244650)[Mon Aug 27 14:24:08 2007] You stop fighting."
         + "\r\n(1188245650)[Mon Aug 27 14:24:08 2007] You stop fighting."
         + "\r\n(1188246650)[Mon Aug 27 14:24:08 2007] You stop fighting."
         + "\r\n(1188242650)[Mon Aug 27 14:24:08 2007] You stop fighting."
         + "\r\n(1188242650)[Mon Aug 27 14:24:08 2007] You stop fighting.");
            bw.close();
            System.exit(0);
            this.currentThread().sleep(5000);
//
//            bw = new BufferedWriter(new FileWriter("C:\\everquest 2\\logs\\Permafrost\\eq2log_Shinzul.txt", true));
//            bw.write("(1188242681)[Mon Aug 27 14:24:41 2007] You have entered New Zone 1.\n");
//            bw.write("\r\n(1188242681)[Mon Aug 27 14:24:41 2007] You start fighting."
// + "\r\n(1188242681)[Mon Aug 27 14:24:41 2007] Your target is too far away!  Move closer!"
// + "\r\n(1188242682)[Mon Aug 27 14:24:42 2007] Your target is too far away!  Move closer!"
// + "\r\n(1188242683)[Mon Aug 27 14:24:43 2007] Your target is too far away!  Move closer!"
// + "\r\n(1188242684)[Mon Aug 27 14:24:44 2007] YOU hit a shade prowler for 593 crushing damage."
// + "\r\n(1188242684)[Mon Aug 27 14:24:44 2007] A shade prowler appears enraged."
// + "\r\n(1188242685)[Mon Aug 27 14:24:45 2007] Your attacks return to normal."
// + "\r\n(1188242686)[Mon Aug 27 14:24:46 2007] You use your weapons to guard yourself."
// + "\r\n(1188242687)[Mon Aug 27 14:24:47 2007] a shade prowler tries to slash YOU with Pounce, but YOU parry."
// + "\r\n(1188242687)[Mon Aug 27 14:24:47 2007] You counter with a Gladiator Strike!"
// + "\r\n(1188242687)[Mon Aug 27 14:24:47 2007] YOUR Buckler Reversal hits a shade prowler for 425 slashing damage."
// + "\r\n(1188242687)[Mon Aug 27 14:24:47 2007] Your target is too far away!  Move closer!"
// + "\r\n(1188242688)[Mon Aug 27 14:24:48 2007] a shade prowler tries to slash YOU, but YOU parry."
// + "\r\n(1188242689)[Mon Aug 27 14:24:49 2007] YOUR Demolish hits a shade prowler for 1206 slashing damage."
// + "\r\n(1188242689)[Mon Aug 27 14:24:49 2007] a shade prowler's Pounce hits you for 2631 slashing damage."
// + "\r\n(1188242689)[Mon Aug 27 14:24:49 2007] a shade prowler hits you for 506 slashing damage."
// + "\r\n(1188242689)[Mon Aug 27 14:24:49 2007] A shade prowler is struck with a vanquishing blow."
// + "\r\n(1188242689)[Mon Aug 27 14:24:49 2007] YOU critically hit a shade prowler for 1202 slashing damage."
// + "\r\n(1188242690)[Mon Aug 27 14:24:50 2007] YOUR Persistent Battering hits a shade prowler for 510 slashing damage."
// + "\r\n(1188242690)[Mon Aug 27 14:24:50 2007] A shade prowler is mauled by a ferocious opponent."
// + "\r\n(1188242691)[Mon Aug 27 14:24:51 2007] a shade prowler tries to slash YOU, but YOU parry."
// + "\r\n(1188242692)[Mon Aug 27 14:24:52 2007] YOUR Agonizing Press hits a shade prowler for 759 crushing damage."
// + "\r\n(1188242692)[Mon Aug 27 14:24:52 2007] A shade prowler is pressed back."
// + "\r\n(1188242693)[Mon Aug 27 14:24:53 2007] YOU critically hit a shade prowler for 1416 slashing damage."
// + "\r\n(1188242693)[Mon Aug 27 14:24:53 2007] YOU hit a shade prowler for 1034 slashing damage."
// + "\r\n(1188242694)[Mon Aug 27 14:24:54 2007] YOUR Stampede hits a shade prowler for 324 crushing damage."
// + "\r\n(1188242694)[Mon Aug 27 14:24:54 2007] A shade prowler recoils from a heafty stomp."
// + "\r\n(1188242694)[Mon Aug 27 14:24:54 2007] YOU hit a shade prowler for 432 slashing damage."
// + "\r\n(1188242694)[Mon Aug 27 14:24:54 2007] A shade prowler begins to recover from the mauling."
// + "\r\n(1188242694)[Mon Aug 27 14:24:54 2007] A shade prowler regains their wits."
// + "\r\n(1188242694)[Mon Aug 27 14:24:54 2007] A shade prowler regains their wits."
// + "\r\n(1188242694)[Mon Aug 27 14:24:54 2007] You have killed a shade prowler."
// + "\r\n(1188242694)[Mon Aug 27 14:24:54 2007] You stop fighting."
// + "\r\n(1188242715)[Mon Aug 27 14:25:15 2007] Your attacks return to normal.");
            bw.close();
//            this.currentThread().sleep(5000);
//            
//            bw = new BufferedWriter(new FileWriter("c:\\tmp\\eq2\\eq2log_Shinzul.txt", true));
//            bw.write("\r\n(1188242753)[Mon Aug 27 14:25:53 2007] You start fighting."
// + "\r\n(1188242753)[Mon Aug 27 14:25:53 2007] YOU hit a dervish beachcomber for 1153 crushing damage."
// + "\r\n(1188242754)[Mon Aug 27 14:25:54 2007] a dervish beachcomber tries to crush YOU, but YOU parry."
// + "\r\n(1188242754)[Mon Aug 27 14:25:54 2007] You counter with a Gladiator Strike!"
// + "\r\n(1188242754)[Mon Aug 27 14:25:54 2007] YOUR Buckler Reversal hits a dervish beachcomber for 465 slashing damage."
// + "\r\n(1188242756)[Mon Aug 27 14:25:56 2007] YOUR Acceleration Strike critically hits a dervish beachcomber for 499 slashing damage."
// + "\r\n(1188242757)[Mon Aug 27 14:25:57 2007] You are mercilessly taunted by your enemy."
// + "\r\n(1188242757)[Mon Aug 27 14:25:57 2007] YOUR Executioner's Wrath hits a dervish beachcomber for 515 slashing damage."
// + "\r\n(1188242757)[Mon Aug 27 14:25:57 2007] A dervish beachcomber appears enraged."
// + "\r\n(1188242758)[Mon Aug 27 14:25:58 2007] a dervish beachcomber tries to crush YOU, but YOU parry."
// + "\r\n(1188242758)[Mon Aug 27 14:25:58 2007] a dervish beachcomber hits YOU for 1341 crushing damage."
// + "\r\n(1188242758)[Mon Aug 27 14:25:58 2007] a dervish beachcomber's Wrath hits YOU for 3466 magic damage."
// + "\r\n(1188242758)[Mon Aug 27 14:25:58 2007] YOU critically hit a dervish beachcomber for 1039 slashing damage."
// + "\r\n(1188242758)[Mon Aug 27 14:25:58 2007] YOUR Absolve Vitae hits a dervish beachcomber for 280 heat damage."
// + "\r\n(1188242759)[Mon Aug 27 14:25:59 2007] YOUR Frenzied Blows critically hits a dervish beachcomber for 601 slashing damage."
// + "\r\n(1188242759)[Mon Aug 27 14:25:59 2007] YOUR Frenzied Blows critically hits a dervish beachcomber for 655 slashing damage."
// + "\r\n(1188242759)[Mon Aug 27 14:25:59 2007] YOUR Frenzied Blows critically hits a dervish beachcomber for 734 slashing damage."
// + "\r\n(1188242759)[Mon Aug 27 14:25:59 2007] You have killed a dervish beachcomber."
// + "\r\n(1188242759)[Mon Aug 27 14:25:59 2007] You stop fighting.\r\n");
//            bw.close();
//            this.currentThread().sleep(5000);
//            
//            bw = new BufferedWriter(new FileWriter("c:\\tmp\\eq2\\eq2log_Shinzul.txt", true));
//            bw.write("\r\n(1188242759)[Mon Aug 27 14:25:59 2007] A dervish beachcomber is struck by a frenzy of attacks."
// + "\r\n(1188242770)[Mon Aug 27 14:26:10 2007] You start fighting."
// + "\r\n(1188242770)[Mon Aug 27 14:26:10 2007] Your target is too far away!  Move closer!"
// + "\r\n(1188242772)[Mon Aug 27 14:26:12 2007] You use your weapons to guard yourself."
// + "\r\n(1188242772)[Mon Aug 27 14:26:12 2007] YOU hit a shade prowler for 1544 crushing damage."
// + "\r\n(1188242776)[Mon Aug 27 14:26:16 2007] a shade prowler tries to slash YOU, but misses."
// + "\r\n(1188242776)[Mon Aug 27 14:26:16 2007] YOUR Disfigure critically hits a shade prowler for 205 slashing damage."
// + "\r\n(1188242776)[Mon Aug 27 14:26:16 2007] YOUR Disfigure critically hits a shade prowler for 215 slashing damage."
// + "\r\n(1188242776)[Mon Aug 27 14:26:16 2007] A shade prowler is wounded by a vicious blow."
// + "\r\n(1188242777)[Mon Aug 27 14:26:17 2007] YOU hit a shade prowler for 239 slashing damage."
// + "\r\n(1188242777)[Mon Aug 27 14:26:17 2007] YOUR Agonizing Press critically hits a shade prowler for 511 crushing damage."
// + "\r\n(1188242777)[Mon Aug 27 14:26:17 2007] A shade prowler is pressed back."
// + "\r\n(1188242778)[Mon Aug 27 14:26:18 2007] YOU critically hit a shade prowler for 1038 slashing damage."
// + "\r\n(1188242778)[Mon Aug 27 14:26:18 2007] YOUR Absolve Vitae hits a shade prowler for 280 heat damage."
// + "\r\n(1188242778)[Mon Aug 27 14:26:18 2007] YOU critically hit a shade prowler for 1195 slashing damage."
// + "\r\n(1188242779)[Mon Aug 27 14:26:19 2007] YOUR Persistent Battering hits a shade prowler for 695 slashing damage."
// + "\r\n(1188242779)[Mon Aug 27 14:26:19 2007] A shade prowler is mauled by a ferocious opponent."
// + "\r\n(1188242780)[Mon Aug 27 14:26:20 2007] A shade prowler regains their wits."
// + "\r\n(1188242780)[Mon Aug 27 14:26:20 2007] a shade prowler tries to slash YOU, but YOU parry."
// + "\r\n(1188242780)[Mon Aug 27 14:26:20 2007] You counter with a Gladiator Strike!"
// + "\r\n(1188242780)[Mon Aug 27 14:26:20 2007] YOUR Buckler Reversal critically hits a shade prowler for 617 slashing damage."
// + "\r\n(1188242780)[Mon Aug 27 14:26:20 2007] YOU hit a shade prowler for 278 slashing damage."
// + "\r\n(1188242780)[Mon Aug 27 14:26:20 2007] YOU critically hit a shade prowler for 1108 slashing damage."
// + "\r\n(1188242780)[Mon Aug 27 14:26:20 2007] A shade prowler begins to recover from the mauling."
// + "\r\n(1188242780)[Mon Aug 27 14:26:20 2007] A shade prowler's wound begins to heal."
// + "\r\n(1188242780)[Mon Aug 27 14:26:20 2007] You have killed a shade prowler."
// + "\r\n(1188242780)[Mon Aug 27 14:26:20 2007] You stop fighting.");
//            bw.close();
//            this.currentThread().sleep(5000);
//            int x = 0;
//            while (x < 25) {
//                x++;
//                bw = new BufferedWriter(new FileWriter("C:\\everquest 2\\logs\\Permafrost\\eq2log_Shinzul.txt", true));
//                //bw.write("(" + (Integer.parseInt("1179534668")) + ")[Fri May 18 19:31:08 2007] YOU hit a disgruntled worker for " + (50 + (x*5)) + " piercing damage.\n");
//                bw.write("(" + (Integer.parseInt("1179534668") + x + 1) + ")[Fri May 18 19:31:08 2007] YOUR Smite hits a crappy foghorn for " + (25 + x) + " divine damage.\n");
//                bw.write("(" + (Integer.parseInt("1179534668") + x) + ")[Fri May 18 19:31:08 2007] a muck toad's Wild Swing hits YOU for " + (15 + (x*5)) + " crushing damage.\n");
//                bw.write("(" + (Integer.parseInt("1179534668") + x + 1) + ")[Fri May 18 19:31:08 2007] a bog faerie's Searing Strike hits YOU for " + (100 + (x*5)) + " heat damage.\n");
//                bw.write("(" + (Integer.parseInt("1179534668") + x) + ")[Fri May 18 19:31:08 2007] YOU hit Wuoshi for " + (250 + (x*5)) + " piercing damage.\n");
//                bw.write("(" + (Integer.parseInt("1179534668") + x + 1) + ")[Fri May 18 19:31:08 2007] YOUR Smite hits Mayong for " + (250 + x) + " divine damage.\n");
//                bw.write("(" + (Integer.parseInt("1179534668") + x) + ")[Fri May 18 19:31:08 2007] Bobman's Wild Swing hits YOU for " + (1000 + (x*5)) + " crushing damage.\n");
//                bw.write("(" + (Integer.parseInt("1179534668") + x + 1) + ")[Fri May 18 19:31:08 2007] another shipmate's Searing Strike hits YOU for " + (100 + (x*5)) + " heat damage.\n");
//                bw.write("(" + (Integer.parseInt("1179534668") + x + 1) + ")[Fri May 18 19:31:08 2007] Varzil's Fiery Doom critically hits a muck toad for 50 heat damage.\n");
//                bw.write("(" + (Integer.parseInt("1179534668") + x + 1) + ")[Fri May 18 19:31:08 2007] Frighten's Fiery Doom critically hits a muck toad for 50 heat damage.\n");
//                bw.write("(" + (Integer.parseInt("1179534668") + x + 1) + ")[Fri May 18 19:31:08 2007] Sykl's Star Nova critically hits a muck toad for " + (1300 + (x*5)) + " heat damage.\n");
//                bw.write("(" + (Integer.parseInt("1179534668") + x + 1) + ")[Fri May 18 19:31:08 2007] Toxc's Star Nova critically hits a muck toad for " + (1000 + (x*5)) + " heat damage.\n");
//                bw.write("(" + (Integer.parseInt("1179534668") + x + 1) + ")[Fri May 18 19:31:08 2007] Elethorn's Life Burn critically hits a muck toad for " + (2000 + (x*5)) + " heat damage.\n");
//                bw.write("(" + (Integer.parseInt("1179534668") + x + 2) + ")[Fri May 18 19:31:08 2007] Hakujin critically hits a muck toad for 20 piercing damage.\n");
//                bw.write("(" + (Integer.parseInt("1179534668") + x + 2) + ")[Fri May 18 19:31:08 2007] an office worker hits YOU for 6 slashing damage.\n");
//                bw.close();
//                this.currentThread().sleep(1000);
//            }

        //this.currentThread().sleep(4000);
        } catch (InterruptedException ex) {
            ex.printStackTrace();
        } catch (IOException ex) {
            ex.printStackTrace();
        }
    }
}
